<script setup lang="ts">
import request from '../utils/request'
import { ref, onMounted } from 'vue'

defineProps<{ msg: string }>()
const count = ref(0)
onMounted(() => {
console.log(request);

  // request({
  //   url: '/user/login',
  //   method: 'post',
  //   data: {
  //     username: 'admin',
  //     password: '111111'
  //   }
  // }).then(res => {
  //   console.log(res);

  // })
})
</script>

<template>
  <h1>{{ msg }}</h1>

  <div class="card">
    <el-button type="warning" @click="count++">count is {{ count }}</el-button>
  </div>
  <Pagination :total="1000"></Pagination>
</template>

<style scoped>
.read-the-docs {
  color: #888;
}
</style>
